package net.stock.db;

import com.google.appengine.api.datastore.Key;

import javax.jdo.annotations.*;
import java.io.Serializable;

/**
 * @author naim
 * @date Dec 24, 2009
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class StockItem implements Serializable{

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private String email;

    @Persistent
    private String name;

    @Persistent
    private Float myPrice;

    @Persistent
    private Float high;

    @Persistent
    private Float low;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getMyPrice() {
        return myPrice;
    }

    public void setMyPrice(Float myPrice) {
        this.myPrice = myPrice;
    }

    public Float getHigh() {
        return high;
    }

    public void setHigh(Float high) {
        this.high = high;
    }

    public Float getLow() {
        return low;
    }

    public void setLow(Float low) {
        this.low = low;
    }
}
